
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>WeChatPYAPI介绍 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    WeChatPYAPI介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    1、常规
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="教程/001-实例化API.html">
            
                <a href="教程/001-实例化API.html">
            
                    
                    1、实例化API对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="教程/002-启动微信.html">
            
                <a href="教程/002-启动微信.html">
            
                    
                    2、启动微信
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="教程/003-获取个人信息.html">
            
                <a href="教程/003-获取个人信息.html">
            
                    
                    3、获取个人信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="教程/004-获取微信登录状态.html">
            
                <a href="教程/004-获取微信登录状态.html">
            
                    
                    4、获取微信登录状态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="教程/005-退出登录.html">
            
                <a href="教程/005-退出登录.html">
            
                    
                    5、退出登录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    2、拉取好友/群/成员
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="教程/006-拉取列表.html">
            
                <a href="教程/006-拉取列表.html">
            
                    
                    1、拉取列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="教程/007-获取群成员列表.html">
            
                <a href="教程/007-获取群成员列表.html">
            
                    
                    2、获取群成员列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="教程/008-拉取企业微信列表.html">
            
                <a href="教程/008-拉取企业微信列表.html">
            
                    
                    3、拉取企业微信列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="教程/009-获取企业群成员列表.html">
            
                <a href="教程/009-获取企业群成员列表.html">
            
                    
                    4、获取企业群成员列表
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    3、发送消息类
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="教程/010-发送文本消息.html">
            
                <a href="教程/010-发送文本消息.html">
            
                    
                    1、发送文本消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="教程/011-发送图片消息.html">
            
                <a href="教程/011-发送图片消息.html">
            
                    
                    2、发送图片消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="教程/012-发送文件视频消息.html">
            
                <a href="教程/012-发送文件视频消息.html">
            
                    
                    3、发送文件/视频消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="教程/013-群聊发送消息并且@指定群成员.html">
            
                <a href="教程/013-群聊发送消息并且@指定群成员.html">
            
                    
                    4、群聊发送消息并且@指定群成员
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="教程/014-发送好友名片.html">
            
                <a href="教程/014-发送好友名片.html">
            
                    
                    5、发送好友名片
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="教程/015-发送卡片链接.html">
            
                <a href="教程/015-发送卡片链接.html">
            
                    
                    6、发送卡片链接
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="教程/036-发送xml消息.html">
            
                <a href="教程/036-发送xml消息.html">
            
                    
                    7、发送XML消息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    4、好友操作
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="教程/016-添加好友.html">
            
                <a href="教程/016-添加好友.html">
            
                    
                    1、添加好友
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="教程/017-删除好友.html">
            
                <a href="教程/017-删除好友.html">
            
                    
                    2、删除好友
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="教程/018-同意添加好友请求.html">
            
                <a href="教程/018-同意添加好友请求.html">
            
                    
                    3、同意添加好友请求
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="教程/019-修改好友备注.html">
            
                <a href="教程/019-修改好友备注.html">
            
                    
                    4、修改好友备注
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    5、群操作
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="教程/020-创建群聊.html">
            
                <a href="教程/020-创建群聊.html">
            
                    
                    1、创建群聊
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="教程/021-修改群名称.html">
            
                <a href="教程/021-修改群名称.html">
            
                    
                    2、修改群名称
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="教程/022-发送群公告.html">
            
                <a href="教程/022-发送群公告.html">
            
                    
                    3、发送群公告
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="教程/023-邀请好友进群.html">
            
                <a href="教程/023-邀请好友进群.html">
            
                    
                    4、邀请好友进群
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="教程/024-踢出群成员.html">
            
                <a href="教程/024-踢出群成员.html">
            
                    
                    5、踢出群成员
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="教程/025-退出群聊.html">
            
                <a href="教程/025-退出群聊.html">
            
                    
                    6、退出群聊
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="教程/026-修改我在群里的昵称.html">
            
                <a href="教程/026-修改我在群里的昵称.html">
            
                    
                    7、修改我在群里的昵称
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="教程/027-显示隐藏群成员昵称.html">
            
                <a href="教程/027-显示隐藏群成员昵称.html">
            
                    
                    8、显示/隐藏群成员昵称
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    6、控制类
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="教程/028-开启关闭消息免打扰.html">
            
                <a href="教程/028-开启关闭消息免打扰.html">
            
                    
                    1、开启/关闭消息免打扰
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="教程/029-置顶取消置顶聊天.html">
            
                <a href="教程/029-置顶取消置顶聊天.html">
            
                    
                    2、置顶/取消置顶聊天
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="教程/031-收款.html">
            
                <a href="教程/031-收款.html">
            
                    
                    3、收款
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="教程/032-退款.html">
            
                <a href="教程/032-退款.html">
            
                    
                    4、退款
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="教程/035-开启关闭消息防撤回.html">
            
                <a href="教程/035-开启关闭消息防撤回.html">
            
                    
                    5、开启/关闭消息防撤回
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" >
            
                <span>
            
                    
                    7、其他
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="教程/030-关注公众号.html">
            
                <a href="教程/030-关注公众号.html">
            
                    
                    关注公众号
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="教程/033-保存图片.html">
            
                <a href="教程/033-保存图片.html">
            
                    
                    保存图片
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="教程/034-同意好友邀请进群.html">
            
                <a href="教程/034-同意好友邀请进群.html">
            
                    
                    同意好友邀请进群
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="消息类型.html">
            
                <a href="消息类型.html">
            
                    
                    消息类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="常见问题及解决方案.html">
            
                <a href="常见问题及解决方案.html">
            
                    
                    常见问题及解决方案
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >WeChatPYAPI介绍</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="wechatpyapi&#x4ECB;&#x7ECD;">WeChatPYAPI&#x4ECB;&#x7ECD;</h1>
<p>&#x300A;WeChatPYAPI&#x300B;&#x662F;&#x57FA;&#x4E8E;PC&#x7AEF;&#x7684;Python&#x63A5;&#x53E3;&#xFF0C;&#x5F00;&#x53D1;&#x8005;&#x53EF;&#x901A;&#x8FC7;Python&#x8F7B;&#x677E;&#x8C03;&#x7528;&#x3002;&#x53EF;&#x8FDB;&#x884C;&#x4E8C;&#x6B21;&#x5F00;&#x53D1;&#xFF0C;&#x5B9E;&#x73B0;&#x5FAE;&#x4FE1;&#x673A;&#x5668;&#x4EBA;&#x3001;&#x7FA4;&#x7BA1;&#x7406;&#x7B49;&#x5F3A;&#x5927;&#x7684;&#x529F;&#x80FD;&#xFF01;</p>
<ul>
<li>&#x7A33;&#x5B9A;&#xFF0C;&#x53EF;&#x7528;&#x4E8E;&#x751F;&#x4EA7;&#x73AF;&#x5883;</li>
<li>&#x652F;&#x6301;&#x591A;&#x5F00;&#x3001;&#x591A;&#x63A7;</li>
<li>&#x552E;&#x540E;&#x6709;&#x4FDD;&#x969C;&#xFF01;&#x6301;&#x7EED;&#x66F4;&#x65B0;&#x8FED;&#x4EE3;</li>
</ul>
<blockquote>
<p><span style="color: red">&#x65B0;&#x7528;&#x6237;&#x6709;3&#x5929;&#x8BD5;&#x7528;&#xFF0C;&#x5982;&#x9700;&#x8D2D;&#x4E70;&#xFF0C;&#x8BF7;&#x8054;&#x7CFB;QQ&#xFF1A;437382693</span></p>
</blockquote>
<h2 id="&#x4F7F;&#x7528;&#x6559;&#x7A0B;">&#x4F7F;&#x7528;&#x6559;&#x7A0B;</h2>
<ol>
<li>&#x514B;&#x9686;&#x8BE5;&#x9879;&#x76EE;<span style="color: red">&#xFF08;&#x8BF7;&#x5173;&#x95ED;&#x4F60;&#x7684;&#x6740;&#x6BD2;&#x8F6F;&#x4EF6;&#xFF0C;&#x5426;&#x5219;&#x53EF;&#x80FD;&#x4F1A;&#x8BEF;&#x5220;dll&#x6587;&#x4EF6;&#xFF09;</span></li>
<li>&#x9009;&#x62E9;&#x5BF9;&#x5E94;python&#x89E3;&#x91CA;&#x5668;&#x73AF;&#x5883;&#xFF08;&#x5982;&#x679C;&#x4F60;&#x662F;32&#x4F4D;&#x7684;python&#xFF0C;&#x8BF7;&#x6253;&#x5F00;32&#x4F4D;&#x6587;&#x4EF6;&#x5939;&#xFF09;</li>
<li>&#x76EE;&#x524D;&#x5DF2;&#x652F;&#x6301;&#x6700;&#x65B0;&#x7248;&#x7684;&#x5FAE;&#x4FE1;&#x7248;&#x672C;&#xFF0C;&#x4F7F;&#x7528;&#x524D;&#x8BF7;&#x5148;&#x628A;&#x4F60;&#x7684;&#x5FAE;&#x4FE1;&#x5347;&#x7EA7;&#x5230;&#x6700;&#x65B0;&#x7248;&#x5373;3.3.0.115</li>
<li>&#x6267;&#x884C;&#x6587;&#x4EF6;&#x5939;&#x4E2D;&#x7684;demo.py</li>
</ol>
<blockquote>
<p>&#x6216;&#x8005;&#x4E0B;&#x8F7D;&#x5BF9;&#x5E94;&#x7248;&#x672C;&#x7684;&#x5FAE;&#x4FE1;&#xFF1A;<a href="https://pan.baidu.com/s/1mWWV449fTdY5KeSw4cw-Qg" target="_blank">https://pan.baidu.com/s/1mWWV449fTdY5KeSw4cw-Qg</a> </p>
<p>&#x63D0;&#x53D6;&#x7801;&#xFF1A;mevk </p>
</blockquote>
<h2 id="&#x7591;&#x95EE;&#x89E3;&#x7B54;&#x3001;&#x8054;&#x7CFB;&#x65B9;&#x5F0F;">&#x7591;&#x95EE;&#x89E3;&#x7B54;&#x3001;&#x8054;&#x7CFB;&#x65B9;&#x5F0F;</h2>
<ul>
<li>QQ&#x7FA4;&#xFF1A;54995858</li>
<li>&#x4F5C;&#x8005;QQ&#xFF1A;437382693</li>
<li>&#x8FDB;&#x7FA4;&#x89E3;&#x51B3;&#x4E00;&#x5207;&#x86C7;&#x76AE;&#x95EE;&#x9898;&#xFF01;</li>
</ul>
<h2 id="helpwechatpyapi">help(WeChatPYApi)</h2>
<pre><code class="lang-python">class WeChatPYApi(builtins.object)
 |  &#x57FA;&#x4E8E;PC&#x5FAE;&#x4FE1;&#x7684;Python-API
 |  
 |  Methods defined here:
 |  
 |  __init__(self, msg_callback, **kwargs)
 |      &#x521D;&#x59CB;&#x5316;&#x65B9;&#x6CD5;
 |      :param msg_callback: &#x6D88;&#x606F;&#x56DE;&#x8C03;&#x51FD;&#x6570;
 |      :param exit_callback: &#x9000;&#x51FA;&#x5FAE;&#x4FE1;&#x540E;&#x7684;&#x56DE;&#x8C03;&#x51FD;&#x6570;
 |      :param logger: &#x65E5;&#x5FD7;&#x5668;&#x53E5;&#x67C4;
 |      :param kwargs: &#x7565;
 |  
 |  add_friend(self, self_wx, to_wx, msg)
 |      &#x6DFB;&#x52A0;&#x597D;&#x53CB;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_wx: &#x8981;&#x6DFB;&#x52A0;&#x7684;&#x5FAE;&#x4FE1;ID
 |      :param msg: &#x6DFB;&#x52A0;&#x65F6;&#x7684;&#x6253;&#x62DB;&#x547C;&#x6D88;&#x606F;
 |      :return: &#x65E0;
 |  
 |  agree_friend(self, self_wx, msg_data)
 |      &#x540C;&#x610F;&#x6DFB;&#x52A0;&#x597D;&#x53CB;&#x8BF7;&#x6C42;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param msg_data: &#x597D;&#x53CB;&#x8BF7;&#x6C42;&#x65F6;&#x7684;&#x6D88;&#x606F;&#x6570;&#x636E;
 |      :return: &#x65E0;
 |  
 |  agree_friend_invite_join_chat_room(self, self_wx, msg_data)
 |      &#x540C;&#x610F;&#x597D;&#x53CB;&#x9080;&#x8BF7;&#x8FDB;&#x7FA4;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param msg_data: &#x6D88;&#x606F;&#x6570;&#x636E;
 |      :return: &#x65E0;
 |  
 |  alter_chat_room_name(self, self_wx, to_chat_room, name)
 |      &#x4FEE;&#x6539;&#x7FA4;&#x540D;&#x79F0;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_chat_room: &#x7FA4;ID
 |      :param name: &#x7FA4;&#x540D;&#x79F0;
 |      :return: &#x65E0;
 |  
 |  alter_friend_remark(self, self_wx, to_wx, remark)
 |      &#x4FEE;&#x6539;&#x597D;&#x53CB;&#x5907;&#x6CE8;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_wx: &#x597D;&#x53CB;&#x5FAE;&#x4FE1;ID
 |      :param remark: &#x5907;&#x6CE8;&#x5185;&#x5BB9;
 |      :return: &#x65E0;
 |  
 |  alter_my_name_in_chat_room(self, self_wx, to_chat_room, name)
 |      &#x4FEE;&#x6539;&#x6211;&#x5728;&#x7FA4;&#x91CC;&#x7684;&#x6635;&#x79F0;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_chat_room: &#x7FA4;ID
 |      :param name: &#x6635;&#x79F0;
 |      :return: &#x65E0;
 |  
 |  chat_room_member_remark_switch(self, self_wx, to_chat_room, switch)
 |      &#x663E;&#x793A;/&#x9690;&#x85CF;&#x7FA4;&#x6210;&#x5458;&#x6635;&#x79F0;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_chat_room: &#x7FA4;ID
 |      :param switch: True:&#x663E;&#x793A; False:&#x9690;&#x85CF;
 |      :return: &#x65E0;
 |  
 |  collection(self, self_wx, msg_data)
 |      &#x6536;&#x6B3E;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param msg_data: &#x6D88;&#x606F;&#x6570;&#x636E;
 |      :return: &#x65E0;
 |  
 |  create_chat_room(self, self_wx, wx_id_list)
 |      &#x521B;&#x5EFA;&#x7FA4;&#x804A;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param wx_id_list: &#x9080;&#x8BF7;&#x8FDB;&#x7FA4;&#x7684;&#x5FAE;&#x4FE1;ID&#x5217;&#x8868;
 |      :return: &#x65E0;
 |  
 |  delete_chat_room_member(self, self_wx, to_chat_room, to_wx)
 |      &#x8E22;&#x51FA;&#x7FA4;&#x6210;&#x5458;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_chat_room: &#x7FA4;ID
 |      :param to_wx: &#x7FA4;&#x6210;&#x5458;&#x5FAE;&#x4FE1;ID
 |      :return: &#x65E0;
 |  
 |  delete_friend(self, self_wx, to_wx)
 |      &#x5220;&#x9664;&#x597D;&#x53CB;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_wx: &#x8981;&#x5220;&#x9664;&#x7684;&#x5FAE;&#x4FE1;ID
 |      :return: &#x65E0;
 |  
 |  exit_chat_room(self, self_wx, to_chat_room)
 |      &#x9000;&#x51FA;&#x7FA4;&#x804A;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_chat_room: &#x7FA4;ID
 |      :return: &#x65E0;
 |  
 |  follow_mp(self, self_wx, mp_id)
 |      &#x5173;&#x6CE8;&#x516C;&#x4F17;&#x53F7;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param mp_id: &#x516C;&#x4F17;&#x53F7;ID
 |      :return: &#x65E0;
 |  
 |  get_chat_room_members(self, self_wx, to_chat_room)
 |      &#x83B7;&#x53D6;&#x7FA4;&#x6210;&#x5458;&#x5217;&#x8868;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_chat_room: &#x7FA4;ID
 |      :return: list&#x6570;&#x636E;
 |  
 |  get_chat_room_members_of_work(self, self_wx, to_chat_room)
 |      &#x83B7;&#x53D6;&#x4F01;&#x4E1A;&#x7FA4;&#x6210;&#x5458;&#x5217;&#x8868;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_chat_room: &#x4F01;&#x4E1A;&#x7FA4;ID
 |      :return: list&#x6570;&#x636E;
 |  
 |  get_login_state(self, self_wx)
 |      &#x83B7;&#x53D6;&#x5FAE;&#x4FE1;&#x767B;&#x5F55;&#x72B6;&#x6001;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :return: True:&#x5DF2;&#x767B;&#x5F55; False:&#x672A;&#x767B;&#x5F55;
 |  
 |  get_self_info(self)
 |      &#x83B7;&#x53D6;&#x4E2A;&#x4EBA;&#x4FE1;&#x606F;
 |      :return: &#x672A;&#x767B;&#x5F55;&#x65F6;&#x8FD4;&#x56DE;None&#xFF0C;&#x767B;&#x5F55;&#x6210;&#x529F;&#x8FD4;&#x56DE;&#x5B57;&#x5178;&#x6570;&#x636E;
 |  
 |  invite_friend_enter_chat_room(self, self_wx, to_chat_room, to_wx)
 |      &#x9080;&#x8BF7;&#x597D;&#x53CB;&#x8FDB;&#x7FA4;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_chat_room: &#x7FA4;ID
 |      :param to_wx: &#x597D;&#x53CB;&#x5FAE;&#x4FE1;ID
 |      :return: &#x65E0;
 |  
 |  keep_msg_switch(self, self_wx, switch)
 |      &#x5F00;&#x542F;/&#x5173;&#x95ED;&#x6D88;&#x606F;&#x9632;&#x64A4;&#x56DE;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param switch: True:&#x5F00;&#x542F; False:&#x5173;&#x95ED;
 |      :return: &#x65E0;
 |  
 |  logout(self, self_wx)
 |      &#x9000;&#x51FA;&#x767B;&#x5F55;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :return: &#x65E0;
 |  
 |  mask_msg_switch(self, self_wx, to_id, switch)
 |      &#x5F00;&#x542F;/&#x5173;&#x95ED;&#x6D88;&#x606F;&#x514D;&#x6253;&#x6270;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_id: &#x597D;&#x53CB;ID/&#x7FA4;ID
 |      :param switch: True:&#x5F00;&#x542F;&#x514D;&#x6253;&#x6270; False:&#x5173;&#x95ED;&#x514D;&#x6253;&#x6270;
 |      :return: &#x65E0;
 |  
 |  pull_list(self, self_wx, pull_type)
 |      &#x62C9;&#x53D6;&#x5217;&#x8868;&#xFF08;&#x597D;&#x53CB;/&#x7FA4;/&#x516C;&#x4F17;&#x53F7;/&#x5176;&#x4ED6;&#xFF09;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param pull_type: &#x597D;&#x53CB;:1 &#x7FA4;:2 &#x516C;&#x4F17;&#x53F7;:3 &#x5176;&#x4ED6;:4
 |      :return: list&#x6570;&#x636E;
 |  
 |  pull_list_of_work(self, self_wx)
 |      &#x62C9;&#x53D6;&#x4F01;&#x4E1A;&#x5FAE;&#x4FE1;&#x5217;&#x8868;&#xFF08;&#x597D;&#x53CB;/&#x7FA4;&#xFF09;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :return: dict&#x6570;&#x636E;
 |  
 |  refund(self, self_wx, msg_data)
 |      &#x9000;&#x6B3E;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param msg_data: &#x6D88;&#x606F;&#x6570;&#x636E;
 |      :return: &#x65E0;
 |  
 |  save_img(self, self_wx, save_path, msg_data)
 |      &#x4FDD;&#x5B58;&#x56FE;&#x7247;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param save_path: &#x4FDD;&#x5B58;&#x56FE;&#x7247;&#x7684;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;
 |      :param msg_data: &#x6D88;&#x606F;&#x6570;&#x636E;
 |      :return: &#x65E0;
 |  
 |  send_card_link(self, self_wx, to_wx, title, desc, target_url, img_url)
 |      &#x53D1;&#x9001;&#x5361;&#x7247;&#x94FE;&#x63A5;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x5FAE;&#x4FE1;ID
 |      :param title: &#x5361;&#x7247;&#x6807;&#x9898;
 |      :param desc: &#x5361;&#x7247;&#x63CF;&#x8FF0;
 |      :param target_url: &#x76EE;&#x6807;&#x5730;&#x5740;
 |      :param img_url: &#x5361;&#x7247;&#x5C01;&#x9762;&#x5730;&#x5740;
 |      :return: &#x65E0;
 |  
 |  send_file(self, self_wx, to_wx, path)
 |      &#x53D1;&#x9001;&#x6587;&#x4EF6;/&#x89C6;&#x9891;&#x6D88;&#x606F;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x5FAE;&#x4FE1;ID
 |      :param path: &#x6587;&#x4EF6;/&#x89C6;&#x9891;&#x7684;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;
 |      :return: &#x65E0;
 |  
 |  send_friend_card(self, self_wx, to_wx, friend_wx, friend_name)
 |      &#x53D1;&#x9001;&#x597D;&#x53CB;&#x540D;&#x7247;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x5FAE;&#x4FE1;ID
 |      :param friend_wx: &#x597D;&#x53CB;&#x5FAE;&#x4FE1;ID
 |      :param friend_name: &#x597D;&#x53CB;&#x6635;&#x79F0;
 |      :return: &#x65E0;
 |  
 |  send_img(self, self_wx, to_wx, path)
 |      &#x53D1;&#x9001;&#x56FE;&#x7247;&#x6D88;&#x606F;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x5FAE;&#x4FE1;ID
 |      :param path: &#x56FE;&#x7247;&#x7684;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;
 |      :return: &#x65E0;
 |  
 |  send_notice(self, self_wx, to_chat_room, msg)
 |      &#x53D1;&#x9001;&#x7FA4;&#x516C;&#x544A;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_chat_room: &#x7FA4;ID
 |      :param msg: &#x516C;&#x544A;&#x5185;&#x5BB9;
 |      :return: &#x65E0;
 |  
 |  send_text(self, self_wx, to_wx, msg)
 |      &#x53D1;&#x9001;&#x6587;&#x672C;&#x6D88;&#x606F;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x5FAE;&#x4FE1;ID
 |      :param msg: &#x6D88;&#x606F;&#x5185;&#x5BB9;
 |      :return: &#x65E0;
 |  
 |  send_text_and_at_member(self, self_wx, to_chat_room, to_wx, name, msg)
 |      &#x7FA4;&#x804A;&#x53D1;&#x9001;&#x6587;&#x672C;&#x4FE1;&#x606F;&#x5E76;&#x4E14;@&#x6307;&#x5B9A;&#x7FA4;&#x6210;&#x5458;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_chat_room: &#x7FA4;ID
 |      :param to_wx: @&#x4EBA;&#x7684;&#x5FAE;&#x4FE1;ID
 |      :param name: @&#x4EBA;&#x7684;&#x5FAE;&#x4FE1;&#x6635;&#x79F0;
 |      :param msg: &#x6587;&#x672C;&#x6D88;&#x606F;
 |      :return: &#x65E0;
 |  
 |  send_xml(self, self_wx, to_wx, xml_str)
 |      &#x53D1;&#x9001;xml&#x6D88;&#x606F;
 |      :param self_wx:
 |      :param to_wx:
 |      :param xml_str:
 |      :return: &#x65E0;
 |  
 |  start_wx(self, path=None)
 |      &#x542F;&#x52A8;&#x5FAE;&#x4FE1;&#xFF0C;&#x76EE;&#x524D;&#x652F;&#x6301;&#x5FAE;&#x4FE1;&#x7248;&#x672C;&#xFF1A;V-3.3.0.115
 |      :param path: &#x4FDD;&#x5B58;&#x767B;&#x5F55;&#x4E8C;&#x7EF4;&#x7801;&#x7684;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;
 |      :return: &#x65E0;
 |  
 |  top_chat_switch(self, self_wx, to_id, switch)
 |      &#x7F6E;&#x9876;/&#x53D6;&#x6D88;&#x7F6E;&#x9876;&#x804A;&#x5929;
 |      :param self_wx: &#x5F53;&#x524D;&#x5FAE;&#x4FE1;ID
 |      :param to_id: &#x597D;&#x53CB;ID/&#x7FA4;ID
 |      :param switch: True:&#x7F6E;&#x9876; False:&#x53D6;&#x6D88;&#x7F6E;&#x9876;
 |      :return: &#x65E0;
 |  
 |  ----------------------------------------------------------------------
</code></pre>
<h2 id="&#x58F0;&#x660E;">&#x58F0;&#x660E;</h2>
<p><strong>&#x672C;&#x9879;&#x76EE;&#x4EC5;&#x4F9B;&#x6280;&#x672F;&#x7814;&#x7A76;&#xFF0C;&#x8BF7;&#x52FF;&#x7528;&#x4E8E;&#x975E;&#x6CD5;&#x7528;&#x9014;&#xFF0C;&#x5982;&#x6709;&#x4EFB;&#x4F55;&#x4EBA;&#x51ED;&#x6B64;&#x505A;&#x4F55;&#x975E;&#x6CD5;&#x4E8B;&#x60C5;&#xFF0C;&#x5747;&#x4E8E;&#x4F5C;&#x8005;&#x65E0;&#x5173;&#xFF0C;&#x7279;&#x6B64;&#x58F0;&#x660E;&#x3002;</strong></p>
<script type="text/javascript">
    localStorage.gitbook_dir = location.href
</script>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"WeChatPYAPI介绍","level":"1.1","depth":1,"next":{"title":"1、常规","level":"1.2","depth":1,"ref":"","articles":[{"title":"1、实例化API对象","level":"1.2.1","depth":2,"path":"教程/001-实例化API.md","ref":"教程/001-实例化API.md","articles":[]},{"title":"2、启动微信","level":"1.2.2","depth":2,"path":"教程/002-启动微信.md","ref":"教程/002-启动微信.md","articles":[]},{"title":"3、获取个人信息","level":"1.2.3","depth":2,"path":"教程/003-获取个人信息.md","ref":"教程/003-获取个人信息.md","articles":[]},{"title":"4、获取微信登录状态","level":"1.2.4","depth":2,"path":"教程/004-获取微信登录状态.md","ref":"教程/004-获取微信登录状态.md","articles":[]},{"title":"5、退出登录","level":"1.2.5","depth":2,"path":"教程/005-退出登录.md","ref":"教程/005-退出登录.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["expandable-chapters"],"pluginsConfig":{"expandable-chapters":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"README.md","mtime":"2021-08-15T07:08:38.898Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-08-15T21:49:47.376Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

